import request from '../utils/request';
import url from '../utils/url';


export function list(params) {
    return request(url.circleNameList, {
        method: 'POST',
        params
    });
}


export function add(params) {
    return request(url.addCircleName, {
        method: 'POST',
        params
    });
}

export function upd(params) {
    return request(url.updCircleName, {
        method: 'POST',
        params
    });
}

export function del(params) {
    return request(url.delCircleName, {
        method: 'POST',
        params
    });
}

export function allType() {
    return request(url.circleTypes, {
        method: 'POST',
    });
}

//图片上传
export function upload(params) {
    return request(url.img, {
        method: 'POST',
        params
    })

}
